removed incorrect lines from api.js