Routers and manually interpreting a javascript enabled UI

Why do home router/gateways have web administration interfaces that REQUIRE javascript to work? I left home this morning and forgot to forward some ports and now I am stuck trying to figure out how to do so from an ssh shell command line by manually interpreting the javascript. Manufacturers, please include REST services to configure your hardware.