removed var in line 19 and 32 and changed intendation based on comments of previous commits and added escape chars in UTF8 for JS_CHARS