Create leavpgs.js