move javascript to new file and format roomrows