added some javascript stuff