I\'m getting this JavaScript error on my console:
Uncaught SyntaxError: Unexpected token ILLEGAL
This is my code:
I changed all space areas to  , just like that and it worked without problem.
val.replace(" ", " ");
I hope it helps someone.