Update input-processor.js

Added related requirements; no double counting for major and related requirements separately; currently can use same course for major and related requirement.  Lots of duplicate code; input-processor.js really needs to be cleaned up and refactored.