Moved JS out of HTML