Javascript extension to easy manipulate DOM