MOCCACAL-29: Selecting a color for the calendar should colorise the input

- add missing html escape
- remove javascript code which is no longer used
- also fix one js warning related to MOCCACAL-39:
  in view mode we have no input fields so first check
  they are present before assinging even handlers to them