adding js timer