adding js files and building calendar object