javascript try catch multiple errors