Helper script to find script tags and run custom code