JavaScript

Added JavaScript. Can be embedded into a page or executed under an interpreter such as V8 or RhinoJS in the command window/terminal.