Adding directive dinamically with jQuery