works with minified hosted version