writeopen javascript stiff