refactor broker && modify app js
clean code
Merge pull request #596 from jialinsun/master

refactor broker && modify app js