fixed JS includes were not working in subpanel in create mode