Some code updates. Updating of DOM element doesn't work properly. Will change to prototypal pattern