tweaked joining games to allow resuming a game in progress. copying in js boilerplate. preliminary templates.