cleared up js