Create gpacalc.js

Works perfectly on my end. More features coming soon