Javascript to run index (latest) page