Fix wrong method call, breaking tests on Firefox

`Array.prototype.each()` is not a native JavaScript method:
`Array.prototype.forEach()` is the correct method.

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Define openProject global in Karma test-helper

This is also needed for legacy tests to run green on Firefox (but not
Chrome or PhantomJS).

Signed-off-by: Alex Coles <alex@alexbcoles.com>
Switch to Bower installed jQuery Mockjax

Signed-off-by: Alex Coles <alex@alexbcoles.com>