reproduced from code.google.com/p/jquery-loadmask/