Browser JavaScript interface for signing with hardware tokens