Update js for module.exports

This updates all current javascript exercises to use module.exports.