fixes js issues