Javascript class names fixed, refs #724.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Referenced tickets | #724
| License       | MIT