Fix issue when buttons target wasn't found for older jQuery versions