Move JS function binding into JSContext.