tighter add, fix jshint errors