more js functions.