updated js file with chrome calendar issue fix