config library by js