Moved JS to external file