Add dom selection functions and a function to get an element from option...

I also added a function which allow to get element from optional element and this function is used when you get an element by his id.