added some js stuff