$(document).ready() is the preferred way