added compatibility with browserjs, requirejs, etc