define dependencies and add override that uses modernizr

needed so unittests can run in phantomjs
improve test