Fix helpers and move MagnificPopup to gem