chore(static pages): cleanup static page route copy&paste

Copy & paste always carries a risk to introduce a bug with a slight difference.
A loop prevents that from happening.
Also, [code climate stat](https://codeclimate.com/github/HabitRPG/habitrpg/src/routes/pages.js) improvement.