Uva Programming Problems In Javascript