JavaScripts function added.