jshinted  code

jshint config + quick code cleanup