Cleaned leap.js file