updates README. Adds errors handling for nils in js specs