Improve javascript.