This screenshot shows the Design mode of a Layout's Fields tab. In this screenshot, the JavaScript toggle in the tab's header is highlighted.