made changes to main.js
changes to js
added id's and new api