changed some js stuff