Optimizations on UX on the webapi js library