moved js to external file and added jshint config