seperating ajax success and frontend success methods
commenting out javascript because it conflicts with require.js stuff