re-organization of files

added a main file called script.js