Fix JSlint issues