Turbolinks compatibility

hey I thought this might interest the community. I needed this library to work with Turbolinks and changing the use of `$(window).on('load', function(){})` to `$(document).ready(function(){})` was the simplest method.

Then a person just needs to set `$.setReadyEvent('page:change');` to raise "ready" into the Turbolinks page:change hook is called

PS. Sorry about the whitespace removal.. my sublime editor is set to remove trailing whitespace...