javascript entrypoint depending on users answers