edit format add js and page