update bower.json and fix registration template