refactored the website to include with javascript