fix(api): API base path relative and fix jshint errors