revisinv to work in the browser