Moving all scripts to bower and minor fixes