javascript oath