remove js, move to cs