Update reader.js

cleanup