Moved JavaScript to own file.