replaceDollarVars_js - handles strings - TODO: add int etc.