Added javascript timer