I've just noticed there's a component missing from the circuit I posted. There should be a pull-down resistor of, say, 10k (its value is not critical; anything from ~10k to 100k will do) between the clock input line and 0V (ground).
Good luck with the project.
Good luck with the project.