fix isLastBlock
move block2 parse to server.js