setting units type (us vs metric)
forgot to add cookies js