wrap init logic inside 'ready' function (mostly just whitespace indentation)