Fixed bug on type of javascript frete vars