javascript correction