Adding comments, creating js file, and small changes