you should not modify the mojoportal source code, find another way and keep all customizations in your own projects, period, end of story. Once you fork it you are on your own and then I have no advice for you. Make your own way to add script from your own code, make your own custom pager, do not modify the one in mojoPortal.