Try moving the function definition to above the javascript in your file.
A Anonymous Guest Feb 29, 2016 #1 Try moving the function definition to above the javascript in your file.