Enhanced the Assetic JavaScript API
Added better exception handling