creates js pages for you