working along with javascript ninja book