removed old reader.js
moved reader logic to js file