cleanup; added support for loading charts into other sites