add loading spinner jquery plugin