A marc reader writer in javascript