Ajax Admin panel - 2 pieces of code available, one Hard coded, another using libraries (Angular, JQuery)