Reorganizing js functions.