Reorganize app.js contents
Improve rate checker interactions