Convert Number To Star Rating Javascript