Index: trunk/FACT++/scripts/Observation_class.js
===================================================================
--- trunk/FACT++/scripts/Observation_class.js	(revision 15027)
+++ trunk/FACT++/scripts/Observation_class.js	(revision 15028)
@@ -8,5 +8,5 @@
 function Observation(obj)
 {
-    if (typof(obj)!='object')
+    if (typeof(obj)!='object')
         throw new Error("Observation object can only be constructed using an object.");
 
@@ -21,5 +21,5 @@
 
     this.start  = utc;
-    this.task   = obj.task ? oArg.task.toUpperCase() : "DATA";
+    this.task   = obj.task ? obj.task.toUpperCase() : "DATA";
     this.source = obj.source;
     this.ra     = obj.ra;
