Change Css Property Javascript Array Sort Objects By Straight