Final javascript cleanup for assignment 4.