Update js to fix bug #162