Edits to javascript.html documentations

- A comma before "or" is only used when joining two independent clauses.
- "This looks like this" is redundant and a colon can introduce the
example.
- Setnences beginning with "There may be," and other "there are" variations, can usually
be compressed for clarity.
- Capitalized API for consistency.