[javascript] How to call a JavaScript function, declared in <head>, in the body when I want to call it