Sorry, I don't have a good solution that I would recommend right now.
You can do what you like and maybe find a way to achieve your goal, but I don't recommend forking the source code, if you do that it will be very difficult for you to upgrade to new versions of mojoPortal.
Only thing that comes to mind is if you clone the Html feature and make your own version that is independent of the Html feature in mojoPortal. Then at least your customizations are separate from mojoPortal code so you can still upgrade.
Best,
Joe