remove moment dep from api.js