Lint fixes

This fixes all the jshint noise leaving just a few errors that still need to be addressed.