updating a little js