format the spec js