Pig Latin - Some problem with my code

Getting page as

Unable to continue with next topics nor click any of the options in code camp page, page got stuck.

getting this error page after adding ?run=disabled to the url

My code -

function translatePigLatin(str)
{
if(!isConsonent(str.charAt(0)))
str.concat(“way”);

else
{
strarr=str.split("");
while(isConsonent(str[0])))
{
st=strarr.slice(1);
strarr.push(st);
}
strarr.join("");
strarr.concat(“ay”);
}
function isConsonent(char)
{
return ![aeiou]/.test(char);
}
return str;
}
translatePigLatin(“consonent”);