Prepare plugins ajax + Javacript interface with php