added some javascript