$j(document).ready(function () {
    'use strict';
    if (window.location.pathname.indexOf('lunchtransactions.html') === -1) {
      var newLaunchBox = $j('#ptgNewLaunchBox');

      // Removes Older Launch link
      newLaunchBox.find('p').eq(2).remove();
      // Rename Gradebook Launch header
      $j('#ptgNewLaunchBox').find('h2').text('Old Gradebook');
    }
});

import $ from 'jquery';

export default function() {
  $(() => {
      if (window.location.pathname.indexOf('lunchtransactions.html') === -1) {
        var newLaunchBox = $('#ptgNewLaunchBox');

        // Removes Older Launch link
        newLaunchBox.find('p').eq(2).remove();
        // Rename Gradebook Launch header
        $('#ptgNewLaunchBox').find('h2').text('Old Gradebook');
      }
  });
}

Use es6 module syntax to import jquery
Use es6 module syntax to import jquery

