Fix jQuery bug by utilizing '.after()' method (formerly: '.append()');