add javascript to show page_trace and add JAE Mode