Fixed gulp build and added main-bower-something needed for the build. Also fixed a bug in the js and did some testing