modified script.js file for pig-latin project. Now it passes all the tests