Detach elements when doing jquery manipulations
From http://flippinawesome.org/2013/11/25/writing-better-jquery-code/?utm_source=javascriptweekly&utm_medium=email