[Study|JavaScript] Dom use in function.