jasmine: tests helpers

* Adds event_checker and initialization_checker to quickly check
  properly connected events and initialization of variables in js
  objects.

Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>