Re-separate jQuery and JS