init of .js file

initial js file containing the code