support passing in configuration options & reinit in browser properly