Use Gulp to build script
Use config to set API url and improve ajax request