adding calendar javascript code