add js tests for commits

  2119f642e30d6d435f64860e5c849eae7584fc7b through
  75316d361ec2efdf5c33508677d13063b22135f5