fixed some issues with jshint
jshint latedef nofunc
jshint