adjust document ready function for testing purposes