* Moved some JavaScript functions out of head.html and into a new wclib.js