Trying to remove depencency on jquery.