Reorder the methods in read-write.js