Skip remote urls, inject scripts that contain html properly (fixed whitepsace issues)

Sorry about that, my editor likes to do that automatically sometimes.