Updated main javascript file.