Update app.js

Fix bug: failed to pass plate name in next function