javascript annoyances