Added endorsement feature with js