Added javascript check.