[router] RouterClass: replace jquery document ready with self-rolled document ready