added stateMaybe.js
looking for the bug