moved admin globals into js lib, updated version