A framework for creating webpages using JavaScript