added js timer