added javascript stuff