Simple javascript page generator