format to only include <script> tags