Update Calendar JS

Resolved issues relevant to IE8 date selection. Added method date_obj, it will return date object and it takes date as string in format (YYYY-MM-DD) or (YYYY,MM,DD)