JSlint and JShint valid JavaScript code

we should check it again