adjust js so it works closer to how it did before, and still supports older Plones