Added browser compatibility.
Kept index.js for legacy and test compatibility (for now).
Bower package definition.