added function to avoid timerjs err