Script loading fix, courtesy of simontabor/jquery-toggles#8