created template and seperated javascript into an external file created seperate pages