Powershell String Remove Javascript Function Definition