Javascript portions of metawidget 3.2 so it can be tested with the bower portion of yeoman workflow