js: Filter out prereleases when displaying the badge

This fixes #13.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>