Update userev.js

use proper length of path to slice