Support for both Angular and browser-only