Refactor javascript code to consume api
Refactor javascript code to consume api

akarki15/pgweb,daveallie/pgweb,graarh/pgweb-mysql,beni55/pgweb,beni55/pgweb,w4ngyi/pgweb,w4ngyi/pgweb,freeformz/pgweb,freeformz/pgweb,xiongjungit/pgweb,trigrass2/pgweb,niiyz/pgweb,adamjaso/pgweb,sosedoff/pgweb,akarki15/pgweb,xiongjungit/pgweb,xiongjungit/pgweb,akarki15/pgweb,niiyz/pgweb,adamjaso/pgweb,hardware/pgweb,adamjaso/pgweb,freeformz/pgweb,hardware/pgweb,brianlow/pgweb,beni55/pgweb,trigrass2/pgweb,akarki15/pgweb,daveallie/pgweb,daveallie/pgweb,sosedoff/pgweb,hardware/pgweb,adamjaso/pgweb,brianlow/pgweb,freeformz/pgweb,niiyz/pgweb,sosedoff/pgweb,cmabastar/pgweb,beni55/pgweb,niiyz/pgweb,w4ngyi/pgweb,w4ngyi/pgweb,trigrass2/pgweb,daveallie/pgweb,sosedoff/pgweb,hardware/pgweb,xiongjungit/pgweb,brianlow/pgweb,graarh/pgweb-mysql,trigrass2/pgweb,cmabastar/pgweb,cmabastar/pgweb,brianlow/pgweb