re-built leap.js
url matches server impl