create history.js & routes for rooms