Easy to use function overloads for JavaScript