fixed glitch in timer, added jQuery var