Rendering ( next & previous page, content type check ) logic moved to
freemarker template.
Basic mode reader and general js is separated.