! Apologies for the bad fix, I'm very tired. And ill. This one should work better. (script.js)