adds js hint and updates ui