fixed js #286

@Riham-Gamal