removed php depenencies, now snippets are loaded with js