Add some tests for the initialization functions
Better for error handling for JS initialisers

Add some basic error checking for the JS initialisers. Add init-spec to
the tests to ensure that these are tested.
Bump minor version number
Bug fix: elem not wrapped in jQuery object
Bump version number for release
Merge branch 'develop'. Release 2.1.2

Conflicts:
	package.json