Index: ../trunk-jpl/src/m/plot/writejsfile.py
===================================================================
--- ../trunk-jpl/src/m/plot/writejsfile.py	(revision 19036)
+++ ../trunk-jpl/src/m/plot/writejsfile.py	(revision 19037)
@@ -1,4 +1,4 @@
-def writejsfile(filename,model,keyname)
+def writejsfile(filename,model,keyname):
 #WRITEJSFILE - write model file to javascript database
 #
 #   Usage:
@@ -12,15 +12,15 @@
 	fid=open(filename,'w')
 
 	fid.write('model = {};\n')
-	fid.write('model["title"]="{0}";\n'.format(model.title)
-	fid.write('model["initialZoomFactor"]={0};\n'.format(model.initialZoomFactor)
+	fid.write('model["title"]="{0}";\n'.format(model.title))
+	fid.write('model["initialZoomFactor"]={0};\n'.format(model.initialZoomFactor))
 	
 	#write index:
 	fid.write('<!-- model["index"]{{{-->\n')
 	fid.write('model["index"]=[')
 	for i in xrange(1,nel-1):
-		fid.write('[{0}, {1}, {2}],'.model.index[i][1],model.index[i][2],model.index[i][3])
-	fid.write('[{0}, {1}, {2}]];\n'.format(model.index[-1][1],model.index[-1][2],model.index[-1][3])
+		fid.write('[{0}, {1}, {2}],'.format(model.index[i][1],model.index[i][2],model.index[i][3]))
+	fid.write('[{0}, {1}, {2}]];\n'.format(model.index[-1][1],model.index[-1][2],model.index[-1][3]))
 	fid.write('<!--}}}-->\n')
 	
 	writejsfield(fid,'model["x"]',model.x,nods)
@@ -42,15 +42,15 @@
 		fid.write('result={};\n')
 		writejsfield(fid,'result["data"]',results[i].data,nods)
 		fid.write('<!--{{{-->\n')
-		fid.write('result["caxis"]=[{0},{1}];\n'.format(results[i].caxis[1],results[i].caxis[2])
-		fid.write('result["label"]="{0}";\n'.format(results[i].label)
-		fid.write('result["shortlabel"]="{0}";\n'.format(results[i].shortlabel)
-		fid.write('result["unit"]="{0}";\n'.format(results[i].unit)
+		fid.write('result["caxis"]=[{0},{1}];\n'.format(results[i].caxis[1],results[i].caxis[2]))
+		fid.write('result["label"]="{0}";\n'.format(results[i].label))
+		fid.write('result["shortlabel"]="{0}";\n'.format(results[i].shortlabel))
+		fid.write('result["unit"]="{0}";\n'.format(results[i].unit))
 		if len(results[i].data[2])>1:
-			fid.write('result["time_range"]=[{0},{1}];\n'.format(results[i].time_range[1],results[i].time_range[2])
-		fid.write('results["{0}"]=result;\n'.format[i]
+			fid.write('result["time_range"]=[{0},{1}];\n'.format(results[i].time_range[1],results[i].time_range[2]))
+		fid.write('results["{0}"]=result;\n'.format(i))
 		fid.write('<!--}}}-->\n')
 	fid.write('model.results=results;\n')
-	fid.write('models["{0}"]=model;\n'.format(keyname)
+	fid.write('models["{0}"]=model;\n'.format(keyname))
 
 	fid.close()
Index: ../trunk-jpl/src/m/plot/writejsfield.py
===================================================================
--- ../trunk-jpl/src/m/plot/writejsfield.py	(revision 19036)
+++ ../trunk-jpl/src/m/plot/writejsfield.py	(revision 19037)
@@ -1,4 +1,4 @@
-def writejsfield(fid,name,variable,nods)
+def writejsfield(fid,name,variable,nods):
 #WRITEJSFIELD - write variable to javascript file 
 #
 #   Usage:
