Workingarround requireJS issue with document.ready