Updated render pages .js

to revert to old method