complete room javascript