Removed DOM direct access for cleaner code

Hi! Nice wrapper!

I just removed the `document.getElementById()` call and used the $elem object instead. It's considered best practice this way because it decouples your directive from the DOM.

Cheers!