adds page generator

partially complete, needs to be converted to
new template path.
change filemode

for some reason these changed when reformatting
my mac.
page.js

forgot to add this to prev page gen commit