$(document).ready equivalent without using jQuery | Hacker News Reader