Interface function made in JQuery.