Better error messages.

Provide better error messages when people mess up the build names.
The JS constant has been removed from CakePHP.