create javascript file

-moved from index.htm file
-added inital jquery event listeners