Update page.js

Small code changes, improvements.