more js modifications