Javascript and ajax are activated and model relationships works