js: allow fast switching between backends during development