fix value as string issue
updated console js