use functions as a dom plugins