jshint fixes, fix api url