move score into js object