adding the js files and improving the css code