Moved interface out of the bundled js, fixed #14