We usually use the head section for "functions". The reason for this is to be sure that the script is loaded before the function is called.
Your Result: