Moved the javascript to the js section to prevent a jQuery not found error.