modify js loader of pages