Added javascript code