Seperated javascript from html.