IE<8 Fixes: Removed trailing commas in string literals and renamed variable char to chara