Introduce javascript tests

This introduces javascript tests to test each component in it's own context.

**This is still WIP. The rspec tests still need to be refactored**.