Update index.php

Added regex to match spaces,semicolon,script-type(type="text/javascript") attributes.