add current-page to js