Add JS framework methods, specs.

- Current spec status:
  RSpec: 51 examples, 0 failures in 1.09 seconds.
  Jasmine: 63 specs, 0 failures in 0.014s.