update count only if link is unread (race condition)
better base url generation
javascript fix