For each local HTML script tag, calls a function with the code inside the tag and replaces the code with the return value