added scripts to index.html
created base javascript file and setup basic API