Have you tried initiating the script with window.Freewall instead of just Freewall?
window.Freewall
Freewall