Added variable command and fixed JS syntax in call