Stop the javascript when done.