[sample app] Set dependencies for JavaScript demo