reordered loading in application.js as jquwery $ not defined