templates/base: add script to mark the current page in the menu

Closes #11.