move clock js code to clock.js file; all include, js and css ready for 'custom rule'