use .done() - special thanks to @dannytatom