javascript work codes