added some js crap