Powershell String Startswith String Javascript Functions