Added support for value in JS methods.