More cleanup of javascript.