If Variable Contains String Javascript Program For Factorial