Fix dependencies and jshint warning