Convert.js Cleanup

Changes all the function signatures in `convert.js` to use the regular function notation and explicitly adds module exports at the end of the file (as per convention).

As indicated in #56, indentation has also been adjusted to 2 space soft-tabs.