add js for page-turning