WIKI-193 Move init funtion to run after document ready