JSlinting some code