make old js variable function deprecated