Update javascript.md

Added documentation to the pulse options.