Fixed typo in api_helpers.js: apiError -> error