JsVariable resource logic changed