Add test for recursive fn; start moving npm packages from bower.json to package.json