Simplified javascript for marking things as read (thanks Spuds for pointing it out) and fixed the boardindex mark all as read

Signed-off-by: emanuele <emanuele45@gmail.com>