Show overlay on html element with single function call