More incremental improvements for JSLint

These changes avoid using multiplication to do parseFloat and as a
side-effect, the code is simplified because I believe I am using
parseFloat only where I need it.