separation of js/html and updated style