Add support for indeterminate state

Added support for an indeterminate state. Taking suggestions from the original PR, included tests, changed to 'undefined', ensured dist files were generated by grunt build, as well as testing with a Travis CI server.