Fixing jQuery load order issue