javascript errors revealed courtesy of Firefox