precompile read.js and write.js