Create pi.js

Here is the main script.