Rewrites inline <script> tags into AMD modules