[OE-4485] Fixed js errors