Generate js_* functions to make them callable from other JS code.