Add the clock JS stuff

This is the things for canvas and stuff like that in JS.