Edited weg.js file