Set up alignment of pane-triggers in JavaScript on environment