panoramia js cleanup