remved mathjax from bower.json and manually installed it, now build works.