clean up a little js