Fitted directive with the use of jQuery