Add JS controller logic for access create and join chat room