A simple way to overload JavaScript functions. Inspired by @mariusGundersen's Overload.