js warnings fixed