classic JavaScrpt Pitfall