Improve revision JS to best practices
Merge pull request #1828 from darkwing/rev-js

Improve revision JS to best practices