Js render bugs