Bash Script Return Value From Function Javascript Example Websites