changed the way exceptions are dealed with at js land;
removed next() function as it is express specific.

Signed-off-by: abbr <wenfred@gmail.com>