Added comments and changed code formatting in task for readability
Rename task file to pages.js