Powershell Function Return String Javascript Functions Practice