Extracting client user commands from application.js