Make JS compress errors more helpful