Wrapping library for use in AMD and commonjs
Ready for bower & npm publishing.