ditch horrible alert()s in favor of console.error