fix umd definition, fix browser tests, phantomjs still doesn't work