Set assetic and test jquery ajax method