some notes and jshint issues