feature detection: localstorage  & addEventListener/attachEvent