Fork of Jan Jarfalk's excellent jquery-elastic plugin