fixed js #286