Added javascript pause