Oh, well spotted, 310 shouldn't be there. The else is there to prevent the innerHTML being set twice. Will fix that tomorrow.