Better handling when JS is disabled, fixes #1