JShint: fix errors