Change document ready method to the proper chrome exstension way