JS creates page