Added a method to escape dot in element id
Moved client-side scripts to separate file (clientUtils.js)