Common API JS fix: instances creation