js for inventary creat