fixed edge error and included updated sample
initial attempt with jquery.layout