Introduce javascript tests

This introduces javascript tests to test each component in it's own context.