integrated api JS in student frontend