JSLint improvements

Passes JSLint except for parseFloat work arounds.