Create goal.js

No globals other than g() & secure (no extra args, no outside way to alter the process)