added more javascript snippets for comments