fix JS promise syntax: catch