Export API to window if present
Compile karma.js
v0.3.3