Fix .connect() method to work if window.load has already been called

I found that pjax wasn't even initializing if `pjax.connect()` was called in a `.ready()`-like function because it waits on a load event which might have been called way earlier.