fixed some render js/jquery issues