refactor revise js for presentation (needs additional testing)