js: drop .preventDefault() usage

When scrolling, don't use preventDefault(): we want the location hash to
be set, too.

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