Generate separate js for each page