Fix for jQuery plugin/append

Close #528