Error: code1Clock = new util.Clock()

Try without the brackets.