javascript cleanup and introduction of panicstrap_update() jquery extension