Do some mucking around with js, add pages