Seperated js from html