Use calil.ready instead of document.ready