fixes script error ($ used before jQuery loaded)