fix javascript typo and add a wrapper script to launch the second app