Add refCounter and multi-use for JS var references