Upgraded to new Javascript API plus Clean Up
Updated API js file link.
Merge branch 'feature/new-api'