copied over latest revmob.js