more jshint fixes and changed instances of parseInt() to Number()