Update jquery.riot.js

refactored popstate triggering to use ready and not timeout, checking with author around rational.