JSContext: separate and optimize computational kernels