does the same for JS