Error on invalid escape sequences

Also reformatting
Why are there braces?
Merge pull request #380 from gamax92/LuaJSucks

Error on invalid escape sequences