add browser tests; fix loading of dependencies properly