Added calendar functionality
Moved code to event handler on page load rather than $ function
Using pickadate instead of jquery ui