Added js functionality for joining random matches