Fix java script error.