placed angularjs factory for rooms in seperate file.