Fixing JS errors, man I have a love-hate relationship with dynamically
typed languages