Moved javascript from html file.