fixes js warnings