Some JSLint fixes

More soon