Refactored additemtocart into own directive