More javascript idempotent stuff.