Created the pi variable

Placed the contents of pi.js in script.js