collectdata.js

Pass in inputs, extract formatted data.