Updated javascript comments and some minor fixes.