Using now onInitEnd configuration instead the obsolete M.prepare onload functions