updated the copy errors in the api.js file, changed location file to locale to prevent bad variable naming