added some javascript and other things