Only run override code if main JavaScript present.