add js for off-panels layout