temp conversion using js