Dom access by css selector implements in javascript