Ads jquery json acording to directives