Update api.js

Removed extraneous import.