updated js stuff