added global timer as JS