CAL-941 Remove deprecated js usage
CAL-942 Improve calendar js, use jQuery, modularize code