Fix karma and install requirejs dependency.
Issue #8