improve transition api
Merge branch 'absinthe' of github.com:mwaylabs/The-M-Project into absinthe

* 'absinthe' of github.com:mwaylabs/The-M-Project:
  add jsdoc grunt plugin
print out message if json is invalid
update layout api