Fix some stuff that JSLint complains about