Added JS for piece page and backend support to set titles, publish and revoke