Did some formatting of javascript files, and added some more details and clarifications.