add custom macro for dealing with returning while escaping a scope in js methods