Allow access to functions using JS conventions

Normalizes the names to be more Javascript-friendly.  Also, renames the `constrain` function to be `clamp`.