specs - javascript check