Refactored myDivHeight directive