Added the required assets to the gem, and used gem's miniature Rails engine to add the JS
asset to Rails app
Added vider JS file
Required necessary helpers source
Simple refactoring