Reformatted proto.js to fit UMD spec

I would sanity check this as it is untested. The simplemocha tests & linting seem to be failing for a reason that wasn't immediately clear to me.