added tests and improved the module
v1.0.0
made npm/bower publishable