use cljs.core.type to return the type of errors from external browsers

Signed-off-by: Chris Granger <ibdknox@gmail.com>