Create JQuery snippets using PHP