Javascript SegY file editor