Deprecated decorator.
Added js equivalent.