Better document ready

See http://gregfranko.com/jquery-best-practices/#/7
Better DOM ready

See http://gregfranko.com/jquery-best-practices/#/