Moved jquery def