started the javascript file

started js file, added include line to index