Powershell Function Return String Javascript Program Practice