Uses jquery to create a custom mask which can be applied over a div