Moved Foundation.js call to fix loading sequence. This fixes an issue wh...

...ere Foundation wasn't loading properly when using NextGen Gallery plugin, and likely others. The issue was the page script was being run before all the enqueued scripts were loaded. This caused foundation() to be called before the foundation.js was loaded in some cases.