JavaScript Programming/Functions/Example Code