js is a mess and who thot it was a good idea to use it for literally everything