Single-Dispatch Generic Functions For JavaScript