Added some more javascript documentation options; it's a tricky choice :(