well, you are right about the changing of website, but I was thinking of reading the website url through a variable as well, which is stored in the mysql database specific to that domain, if a change is made only thing that will be needing update will be the database url value and the div class id in the database.
The ideas was a proof of concept, you have given that. Now the application needs to be customized more to display data and made more robust through dynamic variable assignment specific to domains