Js syntax error fixed