Added event binding for turbolinks

I tried this awesome plugin on rails+turbolinks and it wasn't working when loading pages on the fly through turbo.

I fixed it adding a very simple line and refactoring a few lines of code. Hope someone else will enjoy this!

Keep it up!