Javscript improvements.