reverts script tags, such that preamble is included before the app